import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import User from '@/components/User'
import Cate from '@/components/Cate'
import Goods from '@/components/Goods'
import CateList from '@/components/CateList'
import GoosList from '@/components/GoosList'
Vue.use(Router)

export default new Router({
  'mode':'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/cate',
      name: 'Cate',
      component: Cate
    },
    {
      path: '/goods',
      name: 'Goods',
      component: Goods
    },
    {
      path: '/cate_list',
      name: 'CateList',
      component: CateList
    },
    {
      path: '/goods_list',
      name: 'GoosList',
      component: GoosList
    },

  ]
})
